password protected files

password protected files

am 21.01.2010 13:14:24 von Nasir Zia

--001636e1f938d10c63047daba4d5
Content-Type: text/plain; charset=ISO-8859-1

AOA,

how can i password protect a single file with htaccess. i am using below
technique but it not works for me

AuthName "test"
AuthType Basic
AuthUserFile /path to file/.htpasswd

require valid-user


Nasir

--001636e1f938d10c63047daba4d5
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

AOA,

how can i password protect a single file with htaccess. i am us=
ing below technique but it not works for me

AuthName "test"=
;
AuthType Basic
AuthUserFile /path to file/.htpasswd
<Files &q=
uot;test.php">

=A0 require valid-user
</Files>

Nasir
xy" type=3D"hidden"> den">



--001636e1f938d10c63047daba4d5--

Re: password protected files

am 21.01.2010 14:19:56 von Nilesh Govindrajan

On 01/21/2010 05:44 PM, Nasir Zia wrote:
> AOA,
>
> how can i password protect a single file with htaccess. i am using below
> technique but it not works for me
>
> AuthName "test"
> AuthType Basic
> AuthUserFile /path to file/.htpasswd
>
> require valid-user
>

>
> Nasir

I think your server is not permitting AuthConfig in .htaccess.

Try with this -

>

AllowOverride +AuthConfig



Then I think it should work.

--
Nilesh Govindarajan
Site & Server Adminstrator
www.itech7.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: password protected files

am 21.01.2010 15:30:08 von Nasir Zia

--001636e0a76e305a92047dad8a42
Content-Type: text/plain; charset=ISO-8859-1

My directory authentication works fine. But i want to restrict only one file
behind authentication which is not working for me

On Thu, Jan 21, 2010 at 6:19 PM, Nilesh Govindarajan wrote:

> On 01/21/2010 05:44 PM, Nasir Zia wrote:
>
>> AOA,
>>
>> how can i password protect a single file with htaccess. i am using below
>> technique but it not works for me
>>
>> AuthName "test"
>> AuthType Basic
>> AuthUserFile /path to file/.htpasswd
>>
>> require valid-user
>>

>>
>> Nasir
>>
>
> I think your server is not permitting AuthConfig in .htaccess.
>
> Try with this -
>
> >
>
> AllowOverride +AuthConfig
>
>

>
> Then I think it should work.
>
>
> --
> Nilesh Govindarajan
> Site & Server Adminstrator
> www.itech7.com
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

--001636e0a76e305a92047dad8a42
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

My directory authentication works fine. But i want to restrict only one fil=
e behind authentication which is not working for me

mail_quote">On Thu, Jan 21, 2010 at 6:19 PM, Nilesh Govindarajan =3D"ltr"><> span> wrote:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<=
div class=3D"h5">On 01/21/2010 05:44 PM, Nasir Zia wrote:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
AOA,



how can i password protect a single file with htaccess. i am using below >
technique but it not works for me



AuthName "test"

AuthType Basic

AuthUserFile /path to file/.htpasswd

<Files "test.php">

=A0 require valid-user

</Files>



Nasir




I think your server is not permitting AuthConfig in .htaccess.



Try with this -



<Directory <docroot> >



AllowOverride +AuthConfig



</Directory>



Then I think it should work.




--

Nilesh Govindarajan

Site & Server Adminstrator

www.itech7.com >

nput onclick=3D"jsCall();" id=3D"jsProxy" type=3D"hidden">
L">


--001636e0a76e305a92047dad8a42--

Re: password protected files

am 21.01.2010 22:05:04 von Igor Cicimov

--001485e9a9e29f548b047db30ef6
Content-Type: text/plain; charset=ISO-8859-1

Put that file in separate protected directory and write RewriteRule...just
an idea.

On Jan 22, 2010 1:36 AM, "Nasir Zia" wrote:

My directory authentication works fine. But i want to restrict only one file
behind authentication which is not working for me

On Thu, Jan 21, 2010 at 6:19 PM, Nilesh Govindarajan
wrote: > > On 01/21/2010 05...

--001485e9a9e29f548b047db30ef6
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Put that file in separate protected directory and write RewriteRule...ju=
st an idea.


On Jan 22, 2010 1:36 AM, "Nasir Zia"=
<> wrote=
:

My directory authentication works fine. But i want to restrict onl=
y one file behind authentication which is not working for me


On Thu, Jan 21, 2010 at 6:19 PM, Nilesh Govindarajan < lists@itech7.com">lists@itech7.com> wrote:
>
> On 01/21/2010 05...



--001485e9a9e29f548b047db30ef6--